let obj = {
    foo: 'foo',
    set bar(v) {
        return this.foo = v
    }
}

console.log(obj.foo)

Reflect.set(obj, 'bar', 'hello')
console.log(obj.foo)

// 如果name属性设置了赋值函数，则赋值函数的this绑定receiver。
let receiver = {
    foo: 'ok'
}
Reflect.set(obj, 'bar', 'yes', receiver)
console.log(obj.foo)
console.log(receiver.foo)